home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / CHIP Kasım 1996.iso / ms / index / ppc / idxsveng.exe / RCDATA / CABINET / install.cmd < prev    next >
OS/2 REXX Batch file  |  1996-08-05  |  621b  |  34 lines

  1. @echo off
  2. set SRC=
  3.  
  4. for /d /r %tmp% %%i in (*.*) do if exist %%~fi\setupci.inf set SRC=%%~fi
  5. if "%SRC%" == "" TryTemp
  6. goto noargs
  7.  
  8. :TryTemp
  9. for /d /r %temp% %%i in (*.*) do if exist %%~fi\setupci.inf set SRC=%%~fi
  10. if "%SRC%" == "" TryCwd
  11. goto noargs
  12.  
  13. :TryCwd
  14. set SRC=%1%
  15. if NOT exist %SRC%\setupci.inf goto Error
  16. goto noargs
  17.  
  18. :Error
  19. echo .
  20. echo Tripoli setup error:
  21. echo   You must specify the directory where installing from
  22. echo .
  23. echo   EXAMPLE:
  24. echo     %0 %SRC% (default)
  25. echo .
  26. pause
  27. goto end
  28.  
  29. :noargs
  30. %SystemRoot%\system32\setup.exe /f /i %SRC%\setupci.inf /s %SRC%
  31.  
  32. :end
  33. set SRC=
  34.